<?php

class AccountController extends AdminController
{
	
	public function actionIndex()
	{
		$users = Yii::app()->db->createCommand()->from('{{user}}')->queryAll();

		$this->render('index', array(
				'users'=>$users,
		));
	}
	
	public function actionLogin()
	{
		$this->layout=false;
		$model = new LoginForm();
		$this->render('login', array(
				'model'=>$model
		));
	}

}